package top.asteam.exception;

/**
 * @Author Rock Wang
 * @Time 2021/4/11
 */
public class BusinessException extends RuntimeException {
    private static final long serialVersionUID = 1L;

    protected final Integer code;

    public BusinessException(Integer code, String msg) {
        super(msg);
        this.code = code;
    }

    public BusinessException(String message, Throwable cause) {
        super(message, cause);
        this.code = null;
    }

    public BusinessException(String message, Throwable cause, Integer code) {
        super(message, cause);
        this.code = code;
    }

}
